﻿<html>
<head>
    <title>TextBoxList - jQuery MiniUI 3.0 Documentation</title>    

    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta name="keywords" content="jquery,datagrid,grid,表格控件,ajax,web开发,java开发,.net开发,tree,table,treegrid" />
    <meta name="description" content="jQuery MiniUI - 专业WebUI控件库。jQuery MiniUI是使用Javascript实现的前端Ajax组件库，支持所有浏览器，可以跨平台开发，如Java、.Net、PHP等。" />

    <link href="css/common.css" rel="stylesheet" type="text/css" />
    <script src="core.js" type="text/javascript"></script>
</head>
<body>
    <h3>mini.TextBoxList</h3>
    
    <p>多选输入框。</p>

    <h4>Extend</h4>
    <p> <a class="extendlink" href="control.html">mini.Control</a></p>    

    <h4>Screenshots</h4>
    <img src="images/textboxlist.gif" />

    <h4>Examples</h4>
    <a class="demo" href="../../demo/textboxlist/textboxlist.html" target="_blank">TextBoxList</a>

    <h4>Properties</h4>
    <table>
        <tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th><a href="setsupport.html" target="_blank" style="padding-left:5px;padding-right:5px;"> Set? </a></th><th><a href="getsupport.html" target="_blank" style="padding-left:5px;padding-right:5px;"> Get? </a></th><th><a href="tagsupport.html" target="_blank" style="padding-left:5px;padding-right:5px;"> Tag? </a></th></tr>             

        
        <tr>
            <td>inputMode</td>
            <td>Boolean</td>
            <td>是否输入模式（不选择项）。</td>
            <td>true</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>url</td>
            <td>String</td>
            <td>数据获取地址</td>
            <td></td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>remote</td>
            <td>Boolean</td>
            <td>是否远程加载数据</td>
            <td>true</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        
        <tr>
            <td>ajaxType</td>
            <td>String</td>
            <td>ajax类型：get/post。</td>
            <td></td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>ajaxOptions</td>
            <td>Object</td>
            <td>ajax配置对象。如：ajaxOptions="{type:'post', async: true, data: {a:1, b: true}, dataType: 'text', contentType: 'application/x-www-form-urlencoded;charset=utf-8'}"。</td>
            <td></td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>value</td>
            <td>String</td>
            <td>值</td>
            <td></td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>text</td>
            <td>String</td>
            <td>文本</td>
            <td></td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>valueField</td>
            <td>String</td>
            <td>值字段</td>
            <td>id</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>textField</td>
            <td>String</td>
            <td>文本字段</td>
            <td>text</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>searchField</td>
            <td>String</td>
            <td>查询字段</td>
            <td>"key"</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>dataField</td>
            <td>String</td>
            <td>数据列表字段</td>
            <td></td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>allowInput</td>
            <td>Boolean</td>
            <td>允许文本输入</td>
            <td>true</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>required</td>
            <td>Boolean</td>
            <td>不允许为空</td>
            <td>false</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>errorMode</td>
            <td>String：icon、border、none</td>
            <td>错误提示方式</td>
            <td>icon</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        <tr>
            <td>validateOnChanged</td>
            <td>Boolean</td>
            <td>值改变时验证</td>
            <td>true</td>
            <td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td><td style="text-align:center;">&radic;</td>
        </tr>
        
    </table>

    <h4>Methods</h4>
    <table>
        <tr><th>Name</th><th>Parameter</th><th>Description</th><th>Return</th></tr>
        <tr>
            <td>setUrl（value）</td>
            <td></td>
            <td>设置数据获取地址</td>
            <td></td>
        </tr>
        <tr>
            <td>setText（value）</td>
            <td></td>
            <td>设置文本，比如："中国,美国,加拿大"。</td>
            <td></td>
        </tr>
        <tr>
            <td>setValue（value）</td>
            <td></td>
            <td>设置值，比如："cn,usa,ca"。</td>
            <td></td>
        </tr>
        <tr>
            <td>getValue（）</td>
            <td></td>
            <td>获取值</td>
            <td></td>
        </tr>
        <tr>
            <td>getFormValue（）</td>
            <td></td>
            <td>获取表单值</td>
            <td>String</td>
        </tr>
        <tr>
            <td>validate（）</td>
            <td></td>
            <td>验证控件值</td>
            <td>Boolean</td>
        </tr>
        <tr>
            <td>isValid（）</td>
            <td></td>
            <td>是否通过验证</td>
            <td>Boolean</td>
        </tr>
        <tr>
            <td>setIsValid（Boolean）</td>
            <td></td>
            <td>设置验证结果</td>
            <td></td>
        </tr>
    </table>

    <h4>Events</h4>
    <table>
        <tr><th>Name</th><th>EventObject</th><th>Description</th></tr>       
        <tr>
            <td>valuechanged</td>
            <td></td>
            <td>值改变时发生</td>            
        </tr>
        <tr>
            <td>validation</td>
            <td></td>
            <td>验证时发生</td>            
        </tr>
        <tr>
            <td>removeitem</td>
            <td></td>
            <td>删除项时发生</td>
        </tr>
           
    </table>

    
</body>
</html>
